import Home from '@/components/Home.vue';
import Homefirst from '@/components/Homefirst.vue';
import login from '@/components/login.vue';
import register from '@/components/register.vue';
import coursedetail from '@/components/coursedetail.vue';
import VideoPlayer from '@/components/VideoPlayer.vue';

import { createRouter, createWebHashHistory } from 'vue-router';






const routes = [
    { path: '/', component: Homefirst },
    { path: '/login', component: login },
    { path: '/home', component: Home },
    { path: '/register', component: register },
    { path: '/coursedetail', component: coursedetail },
    { path: '/VideoPlayer', component: VideoPlayer },



];

const router = createRouter({
    history: createWebHashHistory(), // 使用 hash 模式
    routes,
});

export default router;